package com.snda.storage.service.sdk.xml;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

import com.snda.storage.service.sdk.ValueObject;

/**
 * 
 * @author wangzijian
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
public abstract class Error extends ValueObject {

	@XmlElement(name = "Code")
	protected String code;

	@XmlElement(name = "Message")
	protected String message;

	@XmlElement(name = "Resource")
	protected String resource;

	@XmlElement(name = "RequestId")
	protected String sessionId;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getResource() {
		return resource;
	}

	public void setResource(String resource) {
		this.resource = resource;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

}
